package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "添加商品SPU参数")
public class AddSpuDTO {
    @NotBlank
    @Schema(description = "SPU标题")
    private String title;
    @Schema(description = "SPU副标题")
    private String subTitle;
    @NotNull
    @Schema(description = "商品分类ID")
    private Integer categoryId;
    @Schema(description = "商品品牌ID")
    private Integer brandId;
    @NotBlank
    @Schema(description = "SPU图片")
    private String spuImage;
    @NotNull
    @Schema(description = "是否有规格")
    private Integer hasSpec;
    @NotNull
    @Schema(description = "上架状态，0：下架，1：上架")
    private Integer saleable;

    @Schema(description = "是否有效，0：无效，1：有效")
    private Integer valid;
}
